home *** CD-ROM | disk | FTP | other *** search
/ Technotools / Technotools (Chestnut CD-ROM)(1993).ISO / lang_c / cug232 / true.st < prev    next >
Text File  |  1987-06-17  |  512b  |  18 lines

  1. Class True :Boolean
  2. [
  3.         ifTrue: trueAlternativeBlock ifFalse: falseAlternativeBlock
  4.                 ^ trueAlternativeBlock value
  5.  
  6. !       ifFalse: falseAlternativeBlock ifTrue: trueAlternativeBlock
  7.                 ^ trueAlternativeBlock value
  8.  
  9. !       ifTrue: trueAlternativeBlock
  10.                 ^ trueAlternativeBlock value
  11.  
  12. !       ifFalse: falseAlternativeBlock
  13.                 ^ nil
  14.  
  15. |       not
  16.                 ^ false
  17. ]
  18.